<?php

	require 'php-sdk/src/facebook.php';
	$link = $_GET["Link"];

	$facebook = new Facebook(array(
		'appId'  => '176213615761250',
		'secret' => '375110a154f2a4f5b2f6e4f8f093f7be',
	));

	// Get User ID
	$user = $facebook->getUser();

	$con = mysql_connect ("localhost:3306", "root", "fli2411");
        if (!$con) {
		error(DB_ERR);
        }
	mysql_select_db("brain_browser", $con);
	mysql_query("DELETE FROM user_link WHERE user = '$user' AND  link = '$link'", $con);
	mysql_close($con);
	echo $_GET["jsoncallback"] . "({})";
?>

 
